package portal.manager.service;

import java.sql.Connection;

import org.bsc.bean.metadata.ColumnBean;
import org.bsc.bean.metadata.TableBean;

import portal.manager.data.Page;
import portal.manager.data.ServiceBean;
import portal.manager.data.Template;

/**
 * 
 * @author Sorrentino
 *
 */
public interface PortalManagerService {
	
	/**
	 * 
	 * @return
	 */
	public Connection getConnection() throws Exception;
	

	public TableBean[] getTables() throws Exception;
	
	public ColumnBean[] getColumns( String schema, String tableName ) throws Exception; 
	
	public ServiceBean[] getServices() throws Exception;

	public Template[] getTemplates() throws Exception;
	
	public String[] getPanelNames() throws Exception;
	
	public Page createPage( String name, String templateName, String [] templateVars, String[] panels) throws Exception ;
	
	public void storePage(String pageName, String[] templateVars, String[] values) throws Exception;
	
	public Page[] getPages() throws Exception;
	
	
}
